package com.example;


import com.example.bean.A;
import com.example.bean.C;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MyApplicationTester {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
        context.register(ConfigTest.class);
        context.refresh();

//        A a = context.getBean(A.class);
//        System.out.println(a.test2());
        C c = context.getBean(C.class);
        System.out.println(c.testC("aaaaaaaaa"));
        System.out.println(c.testD("AAAA"));
    }

}
